package com.ruoyi.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.basic.domain.TbExchangeRate;

import java.util.List;

/**
 * 汇率Service接口
 * 
 * @author ruoyi
 * @date 2022-09-04
 */
public interface ITbExchangeRateService extends IService<TbExchangeRate>
{
    /**
     * 列表条件查询
     * @param tbExchangeRate
     * @return
     */
    List<TbExchangeRate> listByCondition(TbExchangeRate tbExchangeRate);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    boolean deleteByIds(String ids);

    /**
     * 保存
     * @param tbExchangeRate
     * @return
     */
    int saveRate(TbExchangeRate tbExchangeRate);

    /**
     * 编辑
     * @param tbExchangeRate
     * @return
     */
    int updateRate(TbExchangeRate tbExchangeRate);

    /**
     * 根据源头和目标获取汇率
     * @param chineseWorkerUnitPriceType
     * @param settleCurrencyType
     * @return
     */
    TbExchangeRate getByFromAndTo(String chineseWorkerUnitPriceType, String settleCurrencyType);
}
